package com.mrd.frame.domain;

import java.util.Date;

/**
 * MRDPAY.TRADING_STATEMENTS
 * @author dusy  2017-06-02
 * 交易流水表
 */
public class TradeStatement {
    /**
     * id
     */
    private String tradingStatementsId;

    /**
     * 平台订单号
     */
    private String orderId;

    /**
     * 支付渠道 1微信；2支付宝；待续
     */
    private String payChannel;

    /**
     * 交易类型 1：支付，2：退款
     */
    private String tradeType;

    /**
     * 商户在支付平台的帐号
     */
    private String userKey;

    /**
     * 商户订单号(支付为支付单号，退款为退款单号)
     */
    private String tradeNo;

    /**
     * 关联的商户订单号（退款时，对应的支付单号）
     */
    private String relatedTradeNo;

    /**
     * 交易完成时间（以第三方时间为准）
     */
    private Date tradeTime;

    /**
     * 支付为支付金额，退款为退款金额
     */
    private Integer totalAmount;

    /**
     * 第三方单号
     */
    private String thirdOrderId;

    public String getTradingStatementsId() {
        return tradingStatementsId;
    }

    public void setTradingStatementsId(String tradingStatementsId) {
        this.tradingStatementsId = tradingStatementsId == null ? null : tradingStatementsId.trim();
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public String getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(String payChannel) {
        this.payChannel = payChannel == null ? null : payChannel.trim();
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType == null ? null : tradeType.trim();
    }

    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey == null ? null : userKey.trim();
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo == null ? null : tradeNo.trim();
    }

    public String getRelatedTradeNo() {
        return relatedTradeNo;
    }

    public void setRelatedTradeNo(String relatedTradeNo) {
        this.relatedTradeNo = relatedTradeNo == null ? null : relatedTradeNo.trim();
    }

    public Date getTradeTime() {
        return tradeTime;
    }

    public void setTradeTime(Date tradeTime) {
        this.tradeTime = tradeTime;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getThirdOrderId() {
        return thirdOrderId;
    }

    public void setThirdOrderId(String thirdOrderId) {
        this.thirdOrderId = thirdOrderId == null ? null : thirdOrderId.trim();
    }
}